package com.taowan.xunbaozl.morning_speak.design_pattern.day02;


public class FactoryTest {
	
	public static void main(String[] args) {
		// test mode1
		Human human = new HumanFactory().getHuman(0);
		human.speak();
		// test mode2.
		Human human2 = new HumanFactory().getMale();
		human2.speak();
		// test mode3.
		Human human3 = HumanFactory.getterFemale();
		human3.speak();
	}
}	
